package com.wechat.shopping.mall.account.domain;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * 组织机构创建参数
 * @author wangnn
 * @date 2019/10/11 17:08
 */
public class SaveCustomerParam {

    /**
     * 组织机构名称
     */
    @NotBlank
    @Length(max = 20,message = "组织机构名称最大20字符")
    private String customerName;

    /**
     * 组织机构父级Id
     */
    @NotNull
    private Integer parentId;

    /**
     * 组织机构地址
     */
    private String address;

    /**
     * 组织机构简称
     */
    @NotBlank
    @Length(max = 20,message = "组织机构简称最大20字符")
    private String customerNameShort;

    /**
     * 管理人联系电话
     */
    private String userPhone;

    /**
     * 当前登录用户ID
     */
    private Integer userId;

    /**
     * 默认管理员账号
     */
    @NotBlank
    @Length(max = 30,message = "管理员账号最大30字符")
    private String userAccount;

    /**
     * 默认管理员密码
     */
    @NotBlank
    @Length(max = 6,message = "密码最大6字符")
    private String password;

    /**
     * 默认管理员名称
     */
    @NotBlank
    @Length(max = 10,message = "管理员名称最大10字符")
    private String userName;

    /**
     * 用户类型
     */
    @NotNull
    private Byte userType;

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCustomerNameShort() {
        return customerNameShort;
    }

    public void setCustomerNameShort(String customerNameShort) {
        this.customerNameShort = customerNameShort;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Byte getUserType() {
        return userType;
    }

    public void setUserType(Byte userType) {
        this.userType = userType;
    }
}
